﻿using System;

using Fuse8.DomainFramework.Domain;

namespace Fuse8.DomainFramework.DataAccess.XmlDatabase
{
    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="TEntity"></typeparam>
    /// <typeparam name="TKey"></typeparam>
    internal class DefaultXmlFileDB<TEntity, TKey> : XmlFileDB<TEntity, TKey>
        where TEntity : class, IEntityObject<TKey>, new()
        where TKey : IComparable<TKey>, IEquatable<TKey> 
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public override TEntity CreateDomainEntity()
        {
            return new TEntity();
        }
    }
}
